#include("common.html")
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>澳邮国际商城</title>
    
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta name="full-screen" content="yes">
    <meta name="x5-fullscreen" content="true">
    <link rel="stylesheet" type="text/css" href="#(tpath)/static/css/vant.css">
    <link rel="stylesheet" type="text/css" href="#(tpath)/static/css/filter.css">
    <script type="text/javascript" src="#(tpath)/static/js/jquery.js"></script>
  </head>
  
  <body>
    <!-- 样式 -->
    <style>.container { background: #f8f8f8; overflow: hidden; height: 100%; box-sizing: border-box; font-size: 14px; color: #666; position: relative; } .van-cell-group { background-color: #fff; } [class*=van-hairline]::after{ border: none; } .van-cell { padding: 20px 15px; } .van-field .van-cell__title{max-width: 75px;} .submitBox{margin:20px;} .btn_login{margin-bottom:15px} .btn_findpw{ float: right; margin-top: 10px; font-size: 14px; color: #333; }} .van-radio-group{height:40px} .van-radio { float: left; margin-right: 10px; color: #666; height: 40px; } .van-radio__label{ font-size:12px; margin-left: 5px; } #errorTip{height: 22px;} .copyright-content{ position: fixed; bottom: 30px; width: 100%; text-align: center; font-size: 12px; color: #999; }</style>
    <!-- 内容 -->
    <div id="login" class="container">
      <div class="small_block_title">
        <h1>会员登录</h1></div>
      <div class="small_block_content">
        <!---->
        <div class="van-cell-group van-hairline--top-bottom">
          <div class="van-cell van-cell--required van-field">
            <!---->
            <div class="van-cell__title">
              <span>手机：</span>
              <!----></div>
            <div class="van-cell__value">
              <div class="van-field__body">
                <input type="tel" id="username" placeholder="输入注册手机号码" class="van-field__control" value="19908488901">
                <!---->
                <!-- <div class="van-field__icon">
                  <i class="van-icon van-icon-question-o">
                   
                   </i>
                </div> -->
                <!----></div>
              <!----></div>
            <!----></div>
          <div class="van-cell van-cell--required van-field">
            <!---->
            <div class="van-cell__title">
              <span>密码：</span>
              <!----></div>
            <div class="van-cell__value">
              <div class="van-field__body">
                <input type="password" id="password" placeholder="至少6位数" class="van-field__control" value="123456">
                <!---->
                <!---->
                <!----></div>
              <!----></div>
            <!----></div>
        </div>
      </div>
      <div class="submitBox">
        <button class="btn_login van-button van-button--primary van-button--large van-button--block" id="loginBtn">
          <span class="van-button__text">登录会员</span></button>
        <button class="btn_reg van-button van-button--default van-button--large van-button--block" onclick="location.href='#(base)/register'">
          <span class="van-button__text">免费注册</span></button>
        <a class="btn_findpw" href="#(base)/password">忘记密码？</a></div>
      <div class="copyright-content">@2016-2019 AUGLOBLE All Rights Reserved</div></div>
    <!-- 逻辑 -->
    
    <!-- 底部内容-->
    <style>#mini_footer { /* position: absolute; */ text-align: center; width: 100%; font-size: 12px; color: #ccc; bottom: 10px; background: #f8f8f8; height: 20px; line-height: 20px; z-index: 999; }</style>
    <!-- <div id="mini_footer">@2016-2019 AUGLOBLE  All Rights Reserved</div> --></body>

</html>
<script type="text/javascript">
$("#loginBtn").on("click",function(){
	$.ajax({
        url: "#(base)/login/password",
        type: "post",
        data: {"username":$('#username').val(),"password":$('#password').val()},
        dataType: "json",
        success: function(res){
        	if(res.type=="success"){
       			location.href="#(base)/"
       		}else{
       			alert(res.msg);
       		}
        },
        error: function(res){
        }
    });
});
</script>